home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Frameworks / Grant's CGI Framework 1.0b14 / Interface / Menus / MenuApple.c next >
Text File  |  1996-04-08  |  1KB  |  60 lines

  1. /*****
  2.  *
  3.  *    MenuApple.c
  4.  *
  5.  *    This is a support file for "Grant's CGI Framework".
  6.  *    Please see the license agreement that accompanies the distribution package
  7.  *    for licensing details.
  8.  *
  9.  *    Copyright ©1995,1996 by Grant Neufeld
  10.  *    grant@acm.com
  11.  *    http://arpp.carleton.ca/grant/
  12.  *
  13.  *****/
  14.  
  15. #include "MyConfiguration.h"
  16. #if kCompileWithForeground
  17.  
  18. #include "compiler_stuff.h"
  19. #include "globals.h"
  20.  
  21. #include "AboutBox.h"
  22. #include "MenuFunc.h"
  23. #include "WindowInt.h"
  24.  
  25. #include "MenuApple.h"
  26.  
  27.  
  28. /***  FUNCTIONS  ***/
  29.  
  30. void
  31. doAppleMenu ( short itemNumber, short modifiers )
  32. {
  33.     Str255    itemName;
  34.     
  35.     if ( itemNumber == kmiAbout )
  36.     {
  37.          AboutBoxOpen ();
  38.     }
  39.     else
  40.     {
  41.         /* desk accessory or other Apple menu item */
  42.         GetItem     ( gmAppleMenu, itemNumber, itemName );
  43.         OpenDeskAcc    ( itemName );
  44.     }
  45. } /* doAppleMenu */
  46.  
  47.  
  48. /*  */
  49. void
  50. adjustAppleMenu ( window_type theWindowType )
  51. {
  52.     EnableItem ( gmAppleMenu, kmiAbout );
  53.     EnableItem ( gmAppleMenu, kmTheWholeMenu );
  54. } /* adjustAppleMenu */
  55.  
  56.  
  57. #endif    /* kCompileWithForeground */
  58.  
  59. /*****  EOF  *****/
  60.